<?php /* Smarty version Smarty-3.0.7, created on 2011-12-31 13:40:57
         compiled from "./view/action/message/send_messages.tpl" */ ?>
<?php /*%%SmartyHeaderCode:30274e342720d553e7-90673196%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'da9def79882798bcd09e147d14dfd528f4d225ca' => 
    array (
      0 => './view/action/message/send_messages.tpl',
      1 => 1313237184,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '30274e342720d553e7-90673196',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
    <div class='nag'><span>Centrum zarządzania wiadomościami - wiadomości wysłane</span></div>
    
    <?php if (isset($_smarty_tpl->getVariable('rows',null,true,false)->value)){?>
    	<table style='margin: 20px;'>
        <tr>
        	<td width='40px'></td>
            <td width='150px'>Użytkownik:</td>
            <td width='250px'>Tytuł:</td>
            <td width='100px'>Data wysłania:</td>
        </tr>
    	<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
            	<tr>
                	<td >
                    	<?php if ($_smarty_tpl->tpl_vars['row']->value['message_status']!=0){?>
                        	<img src='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/images/mail_open_2.png' width='20px' height='20px' />
                        <?php }else{ ?>
                        	<img src='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/images/mail.png' width='20px' height='20px' />
                        <?php }?>
                    </td>
                    <td><a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/clans/clan_info/<?php echo $_smarty_tpl->tpl_vars['row']->value['message_to'];?>
'><?php echo $_smarty_tpl->tpl_vars['row']->value['message_to_name'];?>
</a></td>
                    <td ><a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/message/read_message/<?php echo $_smarty_tpl->tpl_vars['row']->value['message_id'];?>
'><?php echo $_smarty_tpl->tpl_vars['row']->value['message_title'];?>
</a></td>
                    <td><center><?php echo $_smarty_tpl->tpl_vars['row']->value['message_send_date'];?>
</center></td>
                </tr>
            
   		<?php }} ?>
        </table>
    <?php }?>
    
    <?php if (isset($_smarty_tpl->getVariable('actionMessage',null,true,false)->value)){?>
    	<?php echo $_smarty_tpl->getVariable('actionMessage')->value;?>

	<?php }?>